package com.rede.didiok.community.restapi;

import javax.annotation.Resource;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.rede.didiok.common.dto.community.UserMomentTopicDto;
import com.rede.didiok.common.utils.ResultUtil;
import com.rede.didiok.community.service.UserMomentService;
import com.rede.didiok.community.service.UserMomentTopicService;

/**
 * 用户动态RestApi
 *
 * @author Rede
 * @date 2023年8月8日15:11:47
 */
@RestController
@RequestMapping("/userMomentTopic")
@Api(value = "用户动态相关接口", tags = {"用户动态相关接口"})
@Slf4j
public class UserMomentTopicRestApi {

    @Resource
    UserMomentService userMomentService;
    @Resource
    UserMomentTopicService userMomentTopicService;

    @ApiOperation(value = "获取用户动态话题详情", notes = "获取用户动态话题详情", response = String.class)
    @PostMapping("/getDetailByUid")
    public String getDetailByUid(@RequestBody UserMomentTopicDto userMomentTopicDto) {
        return ResultUtil.successWithData(userMomentTopicService.getDetailByUid(userMomentTopicDto));
    }

}

